# -*- coding: utf-8 -*-
__author__ = 'xujianhua'
import numpy as np
import cv2
from cv2 import *
import Queue
import multiprocessing
myqueue = Queue.Queue(maxsize = 100)
cap = cv2.VideoCapture(0)


while(True):
    # Capture frame-by-frame
    ret, frame = cap.read()
    gray = cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY)

    cv2.imshow('gray',gray)
    #cv2.imshow('result frame',result)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()
